function ti = render(ti)
% transimg::render  - render the layers into .Rendered

% global variables for storage
global tiobj ...
       tiobjlup;
   
% check arguments
lup = find(tiobjlup == ti.L);
if numel(lup) ~= 1
    error( ...
        'transimg:ObjectRemoved', ...
        'Object removed from global storage.' ...
    );
end

% already rendered?
if tiobj(lup).IsRendered
    return;
end

% put back into .Rendered
tiobj(lup).Rendered = renderc(tiobj(lup));
tiobj(lup).IsRendered = true;
